package com.med.mapper;


import com.med.vo.NoticeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface NoticeMapper {
    //查询医生ID
    Integer selectDoctorId(@Param("doctorAdminId") Integer doctorAdminId);

    //查询通知列表
    List<NoticeVO> selectNoticeList(
            @Param("noticeVO") NoticeVO noticeVO,
            @Param("receiverId") Integer receiverId
    );


    //修改为已读
    Integer updateReadStatus(
            @Param("noticeId") Integer noticeId,
            @Param("receiverId") Integer receiverId
    );


    //查询未读数量
    Integer selectUnreadCount(
            @Param("receiverId") Integer receiverId,
            @Param("noticeType") Integer noticeType
    );
}
